package top.yokey.shopnc.activity.mine;

import android.support.v7.widget.AppCompatTextView;
import android.support.v7.widget.Toolbar;

import top.yokey.shopnc.R;
import top.yokey.shopnc.base.BaseApplication;
import top.yokey.shopnc.base.BaseConstant;
import top.yokey.base.base.BaseToast;
import top.yokey.shopnc.base.SwipeActivity;
import top.yokey.shopnc.bean.PreDepositCashLogBean;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.ViewInject;

@ContentView(R.layout.activity_mine_pre_deposit_cash)
public class PreDepositCashActivity extends SwipeActivity {

    @ViewInject(R.id.mainToolbar)
    private Toolbar mainToolbar;

    @ViewInject(R.id.snTextView)
    private AppCompatTextView snTextView;
    @ViewInject(R.id.moneyTextView)
    private AppCompatTextView moneyTextView;
    @ViewInject(R.id.bankTextView)
    private AppCompatTextView bankTextView;
    @ViewInject(R.id.noTextView)
    private AppCompatTextView noTextView;
    @ViewInject(R.id.nameTextView)
    private AppCompatTextView nameTextView;
    @ViewInject(R.id.timeTextView)
    private AppCompatTextView timeTextView;
    @ViewInject(R.id.stateTextView)
    private AppCompatTextView stateTextView;

    @Override
    public void initData() {

        PreDepositCashLogBean pdCashLogBean = (PreDepositCashLogBean) getIntent().getSerializableExtra(BaseConstant.DATA_BEAN);

        if (pdCashLogBean == null) {
            BaseToast.get().showDataError();
            BaseApplication.get().finish(getActivity());
        }

        setToolbar(mainToolbar, "提现详情");

        assert pdCashLogBean != null;
        snTextView.setText(pdCashLogBean.getPdcSn());
        moneyTextView.setText(pdCashLogBean.getPdcAmount());
        bankTextView.setText(pdCashLogBean.getPdcBankName());
        noTextView.setText(pdCashLogBean.getPdcBankNo());
        nameTextView.setText(pdCashLogBean.getPdcBankUser());
        timeTextView.setText(pdCashLogBean.getPdcAddTimeText());
        stateTextView.setText(pdCashLogBean.getPdcPaymentStateText());

    }

    @Override
    public void initEven() {

    }

}
